﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 练习
{
    class Program
    {
        static void Main(string[] args)
        {
            // 输入阿拉伯数字，输出对应的中文大写
            ZeroNine();
            // 输入"12+34"，输出46
            // "34-12"  22
            string str = Console.ReadLine();
            Console.WriteLine(JS(str));
        }

        public static void ZeroNine()
        {
            string str = Console.ReadLine();
            char[] c = { '零', '一', '二', '三', '四', '五', '六', '七', '八', '九'};
            for (int i = 0; i < str.Length; i++)
            {
                char cc = str[i];
                Console.Write(c[cc - '0']);
            }
            Console.WriteLine();
        }

        public static double JS(string str)
        {
            double result;
            string[] strs = str.Split('+', '-', '*', '/');
            double a = double.Parse(strs[0]);
            double b = double.Parse(strs[1]);

            if (str.Contains("+"))
            {
                result = a + b;
            }
            else if (str.Contains("-"))
            {
                result = a - b;
            }
            else if (str.Contains("*"))
            {
                result = a * b;
            }
            else// if (str.Contains("/"))
            {
                result = a / b;
            }

            return result;
        }
    }
}
